﻿<UserControl x:Class="DeltaGroup.WheelOfJeopardy.UI.Screens.OptionsScreen"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Commands="clr-namespace:DeltaGroup.WheelOfJeopardy.UI.Commands" xmlns:Validations="clr-namespace:DeltaGroup.WheelOfJeopardy.UI.Validations" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="400" Background="{StaticResource ScreenBackgroundBrushKey}">
    
    <StackPanel Width="400" HorizontalAlignment="Center" Margin="0,20,0,0" >
        <GroupBox Padding="10">
            <GroupBox.Header>
            <TextBlock Text="Game Settings" Style="{StaticResource Header}"/>
            </GroupBox.Header>
            <Grid>
                <Grid.Resources>
                    <Style TargetType="{x:Type TextBlock}">
                        <Setter Property="Margin" Value="3" />
                    </Style>
                    <Style TargetType="{x:Type Slider}">
                        <Setter Property="Margin" Value="3" />
                    </Style>
                    <Style TargetType="{x:Type ComboBox}">
                        <Setter Property="Margin" Value="3" />
                    </Style>
                </Grid.Resources>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="2*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <TextBlock Grid.Column="0" Grid.Row="0" Text="Debug Mode"/>
                <ComboBox Grid.Column="2" Grid.Row="0" Name="DebugOptions" SelectedValue="{Binding Path=DebugMode, BindsDirectlyToSource=True}" SelectedValuePath="Key">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Value}" />
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>
                <TextBlock Grid.Column="0" Grid.Row="1" Text="Spins / Jeopardy"/>
                <TextBlock Text="{Binding Path=SpinsPerNormalRound}" Grid.Column="1" Grid.Row="1" TextAlignment="Right"/>
                <Slider Grid.Column="2" Grid.Row="1" Minimum="1" Maximum="200" Value="{Binding Path=SpinsPerNormalRound}" Interval="1" IsSnapToTickEnabled="True" AutoToolTipPlacement="TopLeft"/>
                <TextBlock Grid.ColumnSpan="3" Grid.Row="3" Text="Challenge Response Time Limit" Padding="0,5" FontWeight="Bold"/>
                <TextBlock Text="Easy Mode" Grid.Column="0" Grid.Row="4"/>
                <TextBlock Text="{Binding Path=EasyModeResponseTimeLimit}" Grid.Column="1" Grid.Row="4" TextAlignment="Right"/>
                <Slider Grid.Column="2" Grid.Row="4" Value="{Binding Path=EasyModeResponseTimeLimit}" Minimum="4" Maximum="100" Interval="1" IsSnapToTickEnabled="True" AutoToolTipPlacement="TopLeft"/>
                <TextBlock Text="Medium Mode" Grid.Column="0" Grid.Row="5"/>
                <TextBlock Text="{Binding Path=MediumModeResponseTimeLimit}" Grid.Column="1" Grid.Row="5" TextAlignment="Right"/>
                <Slider Grid.Column="2" Grid.Row="5" Value="{Binding Path=MediumModeResponseTimeLimit}" Minimum="5" Maximum="100" Interval="1" IsSnapToTickEnabled="True" AutoToolTipPlacement="TopLeft"/>
                <TextBlock Text="Hard Mode" Grid.Column="0" Grid.Row="6"/>
                <TextBlock Text="{Binding Path=HardModeResponseTimeLimit}" Grid.Column="1" Grid.Row="6" TextAlignment="Right"/>
                <Slider Grid.Column="2" Grid.Row="6" Value="{Binding Path=HardModeResponseTimeLimit}" Minimum="5" Maximum="100" Interval="1" IsSnapToTickEnabled="True" AutoToolTipPlacement="TopLeft"/>
                
            </Grid>
        </GroupBox>
        <Button Content="Menu" Command="Commands:WoJCommands.Menu"  Style="{StaticResource GameMenu}"/>
    </StackPanel>


</UserControl>
